package mathE;

import java.util.ArrayList;

import mathE.exception.FuctionException;
import swg.MakeSVGFile;
import swg.shape.IswgShape;
import swg.utils.RunningTime;

public class test extends Function
{

	private static String standardPath = "c:/tmp/";
	
	@Override
	public double f(double x)
	{
		double res =x+4*+1;
		return res;
	}
	
	public static void main(String[] args) throws FuctionException {
		System.out.println("ok");
		test t = new test();
		RunningTime rt = new RunningTime();
		rt.start();
		double integralCS = t.integralCS(0, 2, 1e7);
		rt.stop();

		 System.out.println(integralCS);
		 System.out.println(rt.getElapsedDescr());
		 

			ArrayList<IswgShape> shapes = t.graphSVG(-5, 5, 600);

			MakeSVGFile makeSVGFile = new MakeSVGFile(standardPath + "Fx.svg", shapes);
			makeSVGFile.process();

			System.out.println("byE");
	}
	
	

}
